package com.muyan.mq.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.muyan.mq.core.bean.MqLogs;
import com.muyan.mq.core.param.MqLogsPageParam;
import com.muyan.mq.core.vo.MqLogsPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
**mq日志
*/
@Mapper
public interface MqLogsDao extends BaseMapper<MqLogs> {
    /**
     * 批量添加
     * @param list
     * @return
     */
    int saveBath(@Param("list")List<MqLogs> list);

    MqLogs selectByMqId(String mqId);
    /**
   * 分页查询
   * @param page
   * @param param
   * @return
   */
    Page<MqLogsPageVo> queryPageList(@Param("page") Page<MqLogsPageVo> page, @Param("param") MqLogsPageParam param);
}